package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 行程表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-Travel")
@Data
@TableName(value = "travel")
public class Travel {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 导游id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="导游id")
    private Long memberId;

    /**
     * 线路规划
     */
    @TableField(value = "route")
    @ApiModelProperty(value="线路规划")
    private String route;

    /**
     * 行程名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="行程名称")
    private String name;

    /**
     * 人数
     */
    @TableField(value = "people_count")
    @ApiModelProperty(value="人数")
    private Integer peopleCount;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value="开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value="结束时间")
    private Date endTime;

    /**
     * 行程节点json数据
     */
    @TableField(value = "properties")
    @ApiModelProperty(value="行程节点json数据")
    private String properties;

    /**
     * 行程备注
     */
    @TableField(value = "description")
    @ApiModelProperty(value="行程备注")
    private String description;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 是否删除，1删除，0正常
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1删除，0正常")
    private Byte isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_ROUTE = "route";

    public static final String COL_NAME = "name";

    public static final String COL_PEOPLE_COUNT = "people_count";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_PROPERTIES = "properties";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_IS_DELETED = "is_deleted";
}